<template>
  <div>
   <!------------  投诉表  ------------>
            <el-table :data="allcomplaintList" style="width:100%">
             <el-table-column prop="complaintId"
                           label="投诉编号"
                           width="140">
             </el-table-column>
             <el-table-column prop="complaintMessage"
                           label="投诉信息"
                           width="140">
            </el-table-column>
            <el-table-column prop="evaluateLevelId"
                           label="评价等级ID"
                           width="140">
            </el-table-column>
            <el-table-column prop="userId"
                           label="用户ID"
                           width="140">
            </el-table-column>
            <el-table-column prop="staffId"
                           label="员工ID"
                           width="140">
            </el-table-column>
            <el-table-column prop="complaintDesc"
                           label="备注信息"
                           width="140">
            </el-table-column>
            </el-table>
    </div>
</template>

<script>
export default {
  data() {
    return {
        allcomplaintList:[],
    };
  },
  methods: {
    loadComplaint(){
        this.$axios.get("complaint/")
      .then(res=>{
        this.allcomplaintList = res.data.data.allcomplaintList;
      })
    }
  },
  created(){
    // this.staffId = JSON.parse(sessionStorage.getItem("staffId"));
    this.loadComplaint();
  }
};
</script>